<?php
namespace app\api\controller;

use think\Controller;

/**
 * 跳转小程序
 */
class Jump extends Authbase
{
    //获取跳转信息
    public function getjumpinfo(){
        $id = input('id/d');        
        if(empty($id)){
            $ret['code'] = 1;
            $ret['msg'] = "参数错误";
            return json($ret);
        }

        $data = model("JumpAppletModel")->find($id);
        $data['cover_url'] =  config('aliyun_oss.MainPath').'/'.$data['cover_url'];
        $ret['code'] = 0;
        $ret['data'] = $data;
        $ret['msg'] = 'success';
        return json($ret);
    }    
}